package controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import websocket.WebSocketTest;

/**
 * 测试websocket发送信息
 * @author fqcd
 *
 * 2018年5月8日下午5:25:02
 */
@Controller
public class WebsocketController {
	
	
	@RequestMapping(value="/print",method=RequestMethod.GET)
	public void print(){
		
		
		WebSocketTest webSocketTest = new WebSocketTest();
			
			webSocketTest.sendMsg("测试"+new Date());
	}

}
